﻿<%@ Import Namespace="System.Globalization" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ListGroupsControl.ascx.cs"
    Inherits="AsiaSnackExpress.ListGroupsControl" %>
<div class="wrapper">
    <div class="divHeader">
        <asp:Literal ID="txtTitle" runat="server" Text="List Gorup Meal "></asp:Literal>
    </div>
    <asp:GridView ID="gridGroups" runat="server" DataKeyNames="Id" AutoGenerateColumns="False"
        BorderWidth="1px" BackColor="White" CellSpacing="4" CellPadding="4" BorderStyle="None"
        BorderColor="#3366CC" Width="98%">
        <FooterStyle ForeColor="#003399" BackColor="#99CCCC"></FooterStyle>
        <PagerStyle ForeColor="#003399" HorizontalAlign="Left" BackColor="#99CCCC"></PagerStyle>
        <HeaderStyle ForeColor="#CCCCFF" Font-Bold="True" BackColor="#003399"></HeaderStyle>
        <Columns>
            <asp:BoundField HeaderText="Name" DataField="Name"></asp:BoundField>
            <asp:TemplateField HeaderText="Gorup Price">
            <HeaderStyle HorizontalAlign="Right"/>
                <ItemStyle HorizontalAlign="Right"></ItemStyle>
                <ItemTemplate>
                    <asp:Label runat="server" Text='<%# Bind("Price", "{0:#,##0.00}") %>' ID="Label1"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField>
                <ItemStyle HorizontalAlign="Right"></ItemStyle>
                <ItemTemplate>
                    <a href='<%# "EditGroupMeal.aspx?id="+DataBinder.Eval(Container.DataItem,"Id")%>'>Edit</a></ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <SelectedRowStyle ForeColor="#CCFF99" Font-Bold="True" BackColor="#009999"></SelectedRowStyle>
        <AlternatingRowStyle BackColor="Aqua" />
        <RowStyle ForeColor="#003399" BackColor="White"></RowStyle>
    </asp:GridView>
</div>
